package jsyf.oa.facade.wechat.service_account;

import com.alibaba.dubbo.rpc.protocol.rest.support.ContentType;
import com.alibaba.fastjson.JSONObject;
import jsyf.oa.entity.wechat.service_account.WechatOAuthTokenEntity;
import jsyf.oa.entity.wechat.service_account.WechatOAuthUserEntity;

import javax.ws.rs.Consumes;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;

@Path("/wechatOAuthFacade")
@Consumes({MediaType.APPLICATION_JSON, MediaType.TEXT_XML})
@Produces({ContentType.APPLICATION_JSON_UTF_8, ContentType.TEXT_XML_UTF_8})
public interface WechatOAuthFacade {

    @Path("/getOAuthTokenEntity")
    JSONObject getOAuthTokenEntity(String jsonData);

    @Path("/getOAuthUserEntity")
    JSONObject getOAuthUserEntity(String accessToken, String openId);

}
